﻿/// <reference path="InputControl.js" />

var ____a;

var $ToggleControl = TA.Turbo.Controls.ToggleControl = function ToggleControl(clientId)
{
	this.InputControl(clientId);
}
$ToggleControl.Inherit($InputControl);

if (____a)
{
	$ToggleControl.prototype = new $InputControl();
	$ToggleControl.prototype.InputControl = new $InputControl();
}

$ToggleControl.prototype.get_Value = function get_Value()
{
	return this.get_Control().checked;
}
$ToggleControl.prototype.set_Value = function set_Value(value)
{
	this.get_Control().checked = value;	
}
$ToggleControl.prototype.get_SerializedValue = function get_SerializedValue()
{
	return this.get_Value() ? "on" : "";
}
$ToggleControl.prototype.set_SerializedValue = function set_SerializedValue(value)
{
	this.set_Value(value == "on");
}
